package com.zyp.builder;


/**
 * 
 *	建造者模式：
 *
 *	构建过程类，创建一个人过程包括：头，身体，手，脚
 *
 */
public interface PersonBuilder {

	public void buildHead();
	
	public void buildBody();
	
	public void buildHands();
	
	public void buildFoots();
	
	public Person buildPerson();
}

class Person{
	private String head;
	private String body;
	private String hands;
	private String foots;
	public String getHead() {
		return head;
	}
	public void setHead(String head) {
		this.head = head;
	}
	public String getBody() {
		return body;
	}
	public void setBody(String body) {
		this.body = body;
	}
	public String getHands() {
		return hands;
	}
	public void setHands(String hands) {
		this.hands = hands;
	}
	public String getFoots() {
		return foots;
	}
	public void setFoots(String foots) {
		this.foots = foots;
	}
	@Override
	public String toString() {
		return "Person [head=" + head + ", body=" + body + ", hands=" + hands
				+ ", foots=" + foots + "]";
	}
	
}
